<%@page import="com.alex.common.security.SimpleAuthor"%>
<%@page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<header>
	<div data-role="header" style="overflow: hidden;">
		<h1 class="ui-bar ui-bar-a ui-corner-all">憋咕</h1>
		<c:out value="${msg}"></c:out>
		<c:out value="${param.msg}"></c:out>
		<%=(SimpleAuthor.getInstance().getUsername(request) != null) ? "<a href='/logout' data-icon='gear' title='退出' class='ui-btn-right'>"
					+ SimpleAuthor.getInstance().getUsername(request)
					+ "退出</a>"
					: "<a href='/login'  data-icon='gear' title='登录' class='ui-btn-right'>登录</a>"%>
		<div data-role="navbar">
			<ul>
				<li><a href="/">憋咕首页</a></li>
				<li><a href="/show/all">全部文章</a></li>
				<li><a href="#">来信</a></li>
			</ul>
		</div>
		<!-- /navbar -->
	</div>
	<!-- /header -->
</header>